﻿@model IEnumerable<Gfw.Web.Models.Account.UserRechargeModel>

@{
    Layout = null;
}

@using C.Mvc
@using MvcContrib.UI.Grid;

<h3>该会员“@ViewBag.LoginName”共充值 @ViewBag.CountRecharge 次，总计 @ViewBag.SumRecharge 元，最大值 @ViewBag.MaxRecharge 元，最小值 @ViewBag.MinRecharge 元。</h3>

@using (Ajax.BeginForm("RechargeList", "User", null, Gfw.Web.Common.ViewHelper.AjaxGet))
{
    @Html.Grid(Model).Columns(
            column =>
                {
                    column.For(x => string.IsNullOrEmpty(x.BankUserName) ? "无" : x.BankUserName).Named("开户名");
                    column.For(x => string.IsNullOrEmpty(x.BankName) ? "无" : x.BankName).Named("开户行");
                    column.For(x => string.IsNullOrEmpty(x.BankCardNo) ? "无" : x.BankCardNo).Named("账号");
                    column.For(x => x.RechargeMoney).Named("金额");
                    column.For(x => x.RechargeDate).Named("充值时间");
                    column.For(x => string.IsNullOrEmpty(x.BankSerialNo) ? "无" : x.BankSerialNo).Named("银行流水号");
                }).Attributes(id => "mytable",cellpadding=>"0",cellspacing=>"0").Empty("没有相关信息");


 @Ajax.DataGridPager().Totals(ViewBag.TotalSize).PageIndex(ViewBag.PageIndex).PagePropertyName("page").Model(new { did = ViewBag.did }).AjaxOptions(Gfw.Web.Common.ViewHelper.AjaxGet);
}
